﻿

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>我的历史订单 | 飞饭</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="飞饭,flymeal,飞饭网,网上订餐,外卖美食,西安订餐,西安外卖,外卖电话" />
<meta name="description" content="飞饭提供全西安最专业在线免费订餐服务，从您附近喜欢的餐厅订购美食，网上下单，送餐上门。订外卖，找飞饭" />
<link rel="shortcut icon" type="image/x-icon" href="http://www.flymeal.cn:80/assets/images/favicon.ico" />
<link href="Css/main.css" rel="stylesheet" type="text/css" media="all" />
<!--[if lt IE 9]><link href="Css/ie_all.css" rel="stylesheet" type="text/css" media="all" /><![endif]-->
<!--[if lte IE 6]><link href="Css/ie_6.css" rel="stylesheet" type="text/css" media="all" /><![endif]-->
<script type="text/javascript" src="Scripts/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="Scripts/jquery.easing.1.3.min.js"></script>
<script type="text/javascript" src="Scripts/main.js"></script>
<link href="Css/ucenter.css" rel="stylesheet" type="text/css" media="all" />
<link href="Css/myorders.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="Scripts/myordershistory.js"></script>
<script type="text/javascript" src="Scripts/json2.min.js"></script>
<script type="text/javascript" src="Scripts/ejs-1.0.production.js"></script>
<!--[if IE 6]>
<script type="text/javascript" src="Scripts/dd.belatedpng.0.0.8a.min.js"></script>
<script type="text/javascript">DD_belatedPNG.fix('div,a , li, img');</script>
<![endif]-->
<style>
body,html {
	padding-bottom:0px !important ;
}
</style>
</head>

<body>






<!-- <meta content="webkit" name="renderer"/> -->
<link href="Css/header.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 8]>
	<link href="Css/ie67.css" rel="stylesheet" type="text/css"/>
<![endif]-->
<script src="Scripts/jquery-1.11.1.min.js" type="text/javascript"></script>
<!--[if lte IE 8]>
	<script type="text/javascript" src="Scripts/json2.min.js"></script>
<![endif]-->
<script type="text/javascript" src="Scripts/jquery.easing.1.3.min.js"></script>
<script type="text/javascript" src="Scripts/jquery.cookie.js"></script>
<div class="g-hd f-shadow" style="position: initial;overflow: visible;">
	<div class="g-panel f-14 f-f f-fwn" style="position: initial;overflow: visible;">
		<div class="left">
			<a class="l-hd download" href="/customer/mobile.html" target="_blank">手机客户端</a>
		</div>
		<div class="menu_pannel">



				@if(Auth::check())

								<div class="right m-menu-width" id="loginDown">
												<span class="m-login" >
														<a href="/auth/login" class="l-hd" id="login-id">{{Auth::user()->name}}</a>
														<a href="auth/logout" class="l-hd">退出</a>
												</span>
										</div>
								@else
				<div class="right m-menu-width" id="loginDown">
												<span class="m-login" >
														<a href="/auth/login" class="l-hd" id="login-id">登录</a>
														<a href="/auth/register" class="l-hd">注册</a>
												</span>
										</div>
								@endif

			<a id='m29'></a>
		</div>
		<div class="right">
			<a href="javascript:void(0);" class="l-hd" id="shoppingCartTitle">美食车(0)</a>
			<a href="{{'orderhistory'}}" class="l-hd">我的订单</a>
			<a	href="{{'pre'}}" class="l-hd">积分换礼</a>
			<a href="#"	class="f-csd line">|</a>
		</div>
		<a class="l-logo " href="/" title="叫外卖 上飞饭" ></a>
	</div>
</div>
<div class="headerShadow" id="headerShadow">
	<div class="content_2" >
		<div class="ameche-close f-all" id="ameche-close"></div>
		<div class="ameche-content" id="content_2">暂无信息</div>
		<div class="ameche-ok">
		</div>
	</div>
	<div class="mask"></div>
</div>
<div id="container">
	<div class="top_space"></div>
<script type="text/javascript">
$(document).ready(function() {
	var para = $(".partl #parameter").val();
	if(para != null && para != ""){
	var lis = $('li a');
	for(var i=0; i<lis.length; i++){
		var li = lis[i];
		if($(li).attr('href').indexOf(para) > -1){
			if($(li).parent().hasClass('active') != true){
				$(li).parent().addClass('active');
			}
			break;
		}
	}
	}
});
</script>
<div class="partl">
			<div class="title">我的飞饭</div>
			<div class="leftnav">
				<div class="t"></div>
				<div class="body">
					<ul>
					<li><a href="http://www.flymeal.cn:80/mvc/user/customer">个人中心</a></li>
					<li><a href="http://www.flymeal.cn:80/my/todayOrder">今日订单</a></li>
					<li><a href="{{url('orderhistory')}}">历史订单</a></li>
                    <li><a href="http://www.flymeal.cn:80/my/giftHistory">我的兑换礼品</a></li>
					<li><a href="http://www.flymeal.cn:80/my/favorite">我的收藏夹</a></li>
					<li><a href="http://www.flymeal.cn:80/my/message">短消息 </a></li>
					</ul>
				</div>
				<div class="b"></div>
			</div>
			<div class="title">账户管理</div>
			<div class="leftnav">
				<div class="t"></div>
				<div class="body">
					<ul>
						<li><a href="http://www.flymeal.cn:80/my/changeAddr">送餐地址管理</a></li>
						<li><a href="http://www.flymeal.cn:80/customer/securityCenter!load.action?name=security">安全设置</a></li>
						<li><a href="http://www.flymeal.cn:80/my/changePassword">修改密码</a></li>
					</ul>
				</div>
				<div class="b"></div>
			</div>
    <input type="hidden" id="parameter" value="orderHistory"/>
</div>
	<div id="history">
			<h1>我的历史订单</h1>
			<table>
                <tbody>
                <span>
                <tr>
                <!-- <th class="tr">ID</th> -->
                <td class="tr">商家名称</td>
                <td class="tr">餐品名称</td>
                <td class="tr">餐品金额</td>
                <td class="tr">数量</td>
                <td class="tr">操作</td>
                </tr>
                </span>
                @foreach($order as $o)
                <tr>
              <!--   <td class="tr">{{$o->uid}}</td> -->
                <td class="tr">{{$o->ord_sn}}</td>
                <td class="tr">{{$o->mname}}</td>
                <td class="tr">{{$o->mprice}}元</td>
                <td class="tr">{{$o->mnum}}份</td>
                <td class="tr"><a href="orderhistory/del/<?php echo $o->id;?>">删除</a></td>
                </tr>
                @endforeach
                </tbody>
                </table>
	</div>
</div>
<link href="Css/footer.css" rel="stylesheet" type="text/css" />
<div class="footer">
    <div class="g-ft">
        <div class="normal f-f f-14">
            <div class="con">
                <div class="left">
                    <div>
                        <a href="javascript:void(0);" class="l-ft feedback_btn0">新版反馈</a>
                        <a href="javascript:void(0);" class="f-csd l-ft">|</a>
                        <a href="/my/openShop" class="l-ft">我要开店</a>
                        <a href="javascript:void(0);" class="f-csd l-ft">|</a>
                        <a href="/about/us" class="l-ft">联系我们</a>
                        <a href="javascript:void(0);" class="f-csd l-ft">|</a>
                        <a href="/about/recruit" target="_blank" class="l-ft">招聘精英</a>
                        <a href="javascript:void(0);" class="f-csd l-ft">|</a>
                        <a href="/about/problems" class="l-ft">帮助中心</a>
                    </div>
                    <div class="icp">© 2009 - 2014  飞饭  陕ICP备10006969号</div>
                </div>
                <div class="left">
                    <div class="center"><a href="http://wljg.xags.gov.cn/bscx.do?method=hddoc&amp;id=61013100001555" class="f-img" border="0"></a></div>
                </div>
                <div class="right">
                    <a href="/customer/mobile.html?ios=1" target="_blank"><img src="Images/d-apple.png"></a>
                    <a href="/customer/mobile.html" target="_blank"><img src="Images/d-android.png"></a>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="feedback_pop" class="pop f-ff-my">
	<div class="c">
		<div class="t">问题反馈</div>
		<div name="step_1">
			<ul class="type">
				<li t="1" tips="请描述您的问题或想法" class="t1 active">意见</li>
				<li t="2" tips="请描述您的问题" class="t2">疑问</li>
				<li t="3" tips="请描述一下这个错误和正确的信息" class="t3">纠错</li>
				<li t="4" tips="请详细说明举报的问题，请勿恶意举报" class="t4">举报</li>
				<li t="5" tips="觉得飞饭很棒就大声的告诉我们吧，您的称赞会让我们更用心做到最好" class="t5">表扬</li>
			</ul>
			<div class="report_type"><b>举报原因：</b><select name="report_type">
				<option value="">请选择</option>
				<option value="内容反动">内容反动</option>
				<option value="暴力色情">暴力色情</option>
				<option value="非法广告">非法广告</option>
				<option value="不文明语言">不文明语言</option>
				<option value="恶意网址举报">恶意网址举报</option>
			</select><input type="hidden" name="report_id" value="" /></div>
			<div><textarea name="content" class="content" tips=" "></textarea></div>
			<div class="rest_name"><input type="text" name="rest_name" tips="请填写餐馆名称" /></div>
			<div class="submit btn_82_27 btn_82_26">提交</div>
		</div>
		<div name="step_2">
			<div class="notify">为了您能够及时的得到反馈，请</div>
			<div class="login">
				<div class="sub">登录飞饭：</div>
				<div class="tip" style="color:#f00;">账号或密码输入错误，请重新输入</div>
				账号：<input type="text" name="uname" class="input_1" tips="请输入您的用户名/手机/邮箱" /><br />
				密码：<input type="password" name="upassword" class="input_1" />
				<div class="sub">或输入常用邮箱：</div>
				邮箱：<input type="text" name="uemail" class="input_1" tips="您的常用邮箱地址" />
			</div>
			<div class="submit btn_82_27 btn_82_26">提交</div>
			<div class="clear"></div>
		</div>
		<div name="step_3">
			<div class="alertText">请稍候……</div>
		</div>
		<div name="step_4">
			<div class="alertText">问题提交成功！</div>
		</div>
		<div name="step_5">
			<div class="alertText">好像出了点小问题，请稍后重试。</div>
		</div>
		<div class="tel">客服热线：029-82582110</div>
		<div class="close">&times;</div>
	</div>
	<div class="mask"></div>
</div>
<div style = "display:none;"><script src="Scripts/stat.js" language="JavaScript"></script></div>
<script type="text/javascript">
function resetFooter_2(){
	 if($("#container").length==1){
	    	var arg_css = {'height':'auto'};
	    	if(($("#container").height()+$("#container").offset().top+130)>$(window).height()){
	    		$('.footer').css({'position':'relative'});
	    		arg_css.height = 'auto';
	    		$('body').css(arg_css);$('html').css(arg_css);
	    	}else{
	    		arg_css.height = '100%';
	    		$('.footer').css({'position':'absolute'});
	    		$('body').css(arg_css);$('html').css(arg_css);
	    	}
	    }
}
var feedback = {
		isLogin: typeof(ISLOGIN) == 'undefined' ? false : ISLOGIN,
		init: function(){
			$('.feedback_btn0').click(function(){
				feedback.isLogin = $('#loginHref').length > 0 ? false: true;
				$('#feedback_pop [name^=step_]').hide();
				$('.tip').hide();
				$('#feedback_pop [name=step_1]').show();
				var t = $(document).scrollTop()+$(window).height()/2-150;
				$('#feedback_pop .c').css('top', t+'px');
				$('#feedback_pop').show();
				if($('#feedback_pop [name=content]').hasClass('inputTips')) $('#feedback_pop .type li:first').click();
			});
			$('#feedback_pop .type li').click(function(){
				$('#feedback_pop .type li').removeClass('active');
				$(this).addClass('active');
				var t = $(this).attr('t');
				var content = $('#feedback_pop [name=content]');
				content.attr('tips', $(this).attr('tips')).removeClass('s');
				if(content.hasClass('inputTips')) content.val('').focusout();
				$('#feedback_pop .rest_name, #feedback_pop .report_type').hide();
				if(t == 3) {
					$('#feedback_pop .rest_name').show();
					content.addClass('s');
				}
				else if(t == 4) {
					$('#feedback_pop .report_type').show();
					content.addClass('s');
				}
			});
			$('#feedback_pop .submit').click(function(){
				var wrong = false;
				$('#feedback_pop [name=step_1] :input:visible').each(function(){
					if(trim($(this).val()) == '' || $(this).hasClass('inputTips')) {
						alert('请填写完整必要内容。');
						wrong = true;
						return false;
					}
				});
				if(wrong) return;
				if(feedback.isLogin) feedback.submit();
				else if($('#feedback_pop [name=step_1]').css('display') == 'none') {
					var uname = $('#feedback_pop [name=uname]');
					var upassword = $('#feedback_pop [name=upassword]');
					var uemail = $('#feedback_pop [name=uemail]');
					if((uname.val() == '' || upassword.val() == '' || uname.hasClass('inputTips') || upassword.hasClass('inputTips')) && (uemail.val() == '' || uemail.hasClass('inputTips'))) {
						alert('请至少选择一种方式。');
						return;
					}
					feedback.submit(uname.val(), upassword.val(), uemail.val());
				}
				else {
					$('#feedback_pop [name^=step_]').hide();
					$('#feedback_pop [name=step_2]').show();
					//if($.browser.msie && $.browser.version < 7) $('#feedback_pop .tel').hide().show();
				}
			});
		},
		submit: function(uname, upassword, uemail) {
			$('#feedback_pop [name^=step_]').hide();
			var params = {
				t: 0,
				q_cat: $('#feedback_pop .type .active').attr("t"),
				q_content: $('#feedback_pop [name=content]').val(),
				q_report_type:null,
				q_report_id:0,
				q_rest_name:null,
				uname:null,
				upassword:null,
				uemail:null
			};
			var report_type = $('#feedback_pop [name=report_type]').val();
			var report_id = $('#feedback_pop [name=report_id]').val();
			var rest_name = $('#feedback_pop input[name=rest_name]').val();
			var page_rest_name = $("#companyName").val();
			if(report_type != '') params.q_report_type = report_type;
			if(report_id != '') params.q_report_id = report_id;
			if(rest_name != '') {
				params.q_rest_name = rest_name;
			} else {
				params.q_rest_name = page_rest_name;
			}
			if(!feedback.isLogin) {
				if(uname != '' && upassword != '') {
					params.t = 1;
					params.uname = uname;
					params.upassword = upassword;
				}
				else {
					params.t = 2;
					params.uemail = uemail;
				}
			}
			$.ajax({
		        url : getRootPath()+'/customerajax/feedbackinfo!addFeedback.action',
		        data: params,
		        cache : false,
		        async : true,
		        type : "POST",
		        dataType : 'json',
		        beforeSend	: function(xmlHttpRequest){
		        	$('#feedback_pop [name=step_3]').show();
				},
		        success : function (data){
		        	$('#feedback_pop [name=step_3]').hide();
		        	feedback.done(data);
		        },
		        error	:	function(){
		        	$('#feedback_pop [name=step_5]').show();
		        }
		    });
		},
		done: function(d) {
			if(d.errorCode != '') {
				$('#feedback_pop [name=step_2]').show();
				$('.tip').show();
				return;
			}
			$('#feedback_pop [name^=step_]').hide();
			$('#feedback_pop [name=step_4]').show();
			if((d.q_cat == 3)&&(d.t == 0||d.t == 1)){
				pointsPop.gen(20, '#feedback_pop [name=step_4] .alertText');
			}
			$('#feedback_pop .type li').removeClass('active');
			$('#feedback_pop .type li:first').addClass('active');
			$('#feedback_pop [name=content]').val('').focusout();
			$('#feedback_pop [name=uname]').val('').focusout();
			$('#feedback_pop [name=upassword]').val('');
			$('#feedback_pop [name=uemail]').val('').focusout();
		}
};
function initPopup() {
	//if($.browser.msie && $.browser.version < 7) $('.pop .mask').css('height', $(document).height()+'px');
	$('.pop .close').click(function(){$(this).parent().parent().hide();});
}
$(function(){
	feedback.init();
	initPopup();
	//resetFooter();
	resetFooter_2();
	var toTop = {
			_:function(){
				$("#i-toTop").click(function(){
					$('html,body').animate({scrollTop:0},500);
				});
			}
	};
	toTop._();
});
$(document).bind('click',function(ev){
    var ev=ev||window.event;
    var elem=ev.target||ev.srcElement;
    resetFooter_2();
});
$(window).resize(function(){
	resetFooter_2();
});
function init(){}
function initBody(){}
//trim
 function trim(str) {
	//var str = str.replace(/^\s\s*/, ''),
	ws = /\s/,
	i = str.length;
	while (ws.test(str.charAt(--i))){}
	return str.slice(0, i + 1);
}
function getRootPath(){
	return window.location.protocol+'//'+window.location.host;
}
function resetFooter(){}


</script>
</body>
</html>
